package com.preskool.mapper;

import com.preskool.dto.TimeTableVo;
import com.preskool.po.TimeTable;
import com.preskool.po.TimeTableExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TimeTableMapper {
    long countByExample(TimeTableExample example);

    int deleteByExample(TimeTableExample example);

    int deleteByPrimaryKey(Integer ttid);

    int insert(TimeTable record);

    int insertSelective(TimeTable record);

    List<TimeTable> selectByExample(TimeTableExample example);

    TimeTable selectByPrimaryKey(Integer ttid);

    int updateByExampleSelective(@Param("record") TimeTable record, @Param("example") TimeTableExample example);

    int updateByExample(@Param("record") TimeTable record, @Param("example") TimeTableExample example);

    int updateByPrimaryKeySelective(TimeTable record);

    int updateByPrimaryKey(TimeTable record);

    //自定义查询所有方法
    List<TimeTableVo> queryAll(TimeTableExample example);

    //自定义查询一个的方法方法
    TimeTableVo queryOne(Integer ttid);

    //自定义一个单独查询的方法
    TimeTable queryTableByTtid(Integer ttid);
}